package abstracttransaction

import (
	"fmt"
	"log"
	"salarypayment-case/Model"
)


type ChangeMethodTransaction struct {
	ChangeEmployeeTransaction
	MethodTransaction
}

func (cm *ChangeMethodTransaction) Change(e *Model.Employee){
	pm := cm.GetMethod()
	e.SetMethod(pm)
}

func (cm *ChangeMethodTransaction) Pay(e *Model.Employee) {
	err := fmt.Errorf("The method or operation is not implemented.")
	log.Println(err.Error())
}
